import { GET_MOVE_RECOMMONED } from '../types/home'
import Request from '@/api/request'

const getMusicRecommendMove = () => dispatch => {
  getMusicRecommendMoveRequest().then(res => {
    const { data } = res
    return dispatch({
      data: {
        musicRecommendMove: data
      },
      type: GET_MOVE_RECOMMONED
    })
  })
}

const getMusicRecommendMoveRequest = () => {
  return Request.get('/cloudmusic/mv/first?limit=10')
}

export {
  getMusicRecommendMove
}